body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}
/* 原有样式保持不变，添加以下新样式 */

.member-selector {
    margin-bottom: 15px;
}

#memberSelect {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
}

.item-member {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.item-status {
    display: flex;
    gap: 5px;
}

.status-btn {
    padding: 3px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.buy-btn {
    background-color: #4CAF50;
    color: white;
}

.pending-btn {
    background-color: #FFC107;
    color: black;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.member-selector {
    margin-bottom: 15px;
}

#memberSelect {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
}

.input-area {
    display: flex;
    margin-bottom: 20px;
}

.item-member {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.item-status {
    display: flex;
    gap: 5px;
}

.status-btn {
    padding: 3px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.buy-btn {
    background-color: #4CAF50;
    color: white;
}

.pending-btn {
    background-color: #FFC107;
    color: black;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

#itemInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#addBtn {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

#addBtn:hover {
    background-color: #45a049;
}

#shoppingList {
    list-style-type: none;
    padding: 0;
}

#shoppingList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#shoppingList li.completed {
    text-decoration: line-through;
    color: #888;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #d32f2f;
}
